<div class="left-sidebar">
    <div class="tpl-sidebar-user-panel">
        <div class="tpl-user-panel-slide-toggleable">
            <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
              <#if Session.manager_user??>
                 ${Session.manager_user.realname!}
              </#if>
          </span>
            <a href="${contextPath}/user/tochangepw.htm" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 密码修改</a>
        </div>
    </div>
    <!-- 菜单 -->
    <ul class="sidebar-nav">
        <#if Session.manager_xtcd??>
            <#list Session.manager_xtcd as dl>
                <#if dl.hasChild?? && dl.hasChild>
                    <li class="sidebar-nav-link">
                        <a href="javascript:;" class="sidebar-nav-sub-title">
                            <i class="am-icon-${dl.icon!'table'} sidebar-nav-link-logo"></i> ${dl.cdmc!''}
                            <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
                        </a>
                        <ul class="sidebar-nav sidebar-nav-sub">
                            <#list dl.childCds as zcd>
                                <li class="sidebar-nav-link">
                                    <a href="${contextPath}/${zcd.cdurl!''}"
                                    <#if req_uri=zcd.cdurl>class="active"</#if>
                                    >
                                    <span class="am-icon-angle-right sidebar-nav-link-logo"></span> ${zcd.cdmc!''}
                                    </a>
                                </li>
                                <#if req_uri=zcd.cdurl>
                                    <script>
                                        $(".active").closest("ul").show();
                                        $(".active").closest("ul").prev("a").find("span").addClass("sidebar-nav-sub-ico-rotate");
                                    </script>
                                </#if>
                            </#list>
                        </ul>
                    </li>
                    <#else>
                        <li class="sidebar-nav-link">
                            <#if dl.cdurl??>
                                <a href="${contextPath}/${dl.cdurl!''}"
                                <#if req_uri=dl.cdurl>class="active"</#if>
                                >
                                <i class="am-icon-${dl.icon!'table'} sidebar-nav-link-logo"></i> ${dl.cdmc!''}
                                </a>
                            </#if>
                        </li>
                </#if>
            </#list>
        </#if>
    </ul>
</div>
